package com.library.service.impl;

import com.library.bean.Book;
import com.library.dao.BookDao;
import com.library.dao.impl.BookDaoimpl;
import com.library.service.BookService;

import java.util.List;

public class BookServiceImpl implements BookService {

    @Override
    public List<Book> SelectAll() {
        BookDao bookDao = new BookDaoimpl();
        List<Book> books = bookDao.SelectAll();
        if (books!=null) {
            return books;
        }
            return null;
    }
}
